<?php

/**
 * staticinfomation actions.
 *
 * @package    nutrition
 * @subpackage staticinfomation
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class staticinfomationActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIntroduction(sfWebRequest $request)
  {
      $this->introduction = staticinfomationTable::getInstance()->getIntroduction();
  }
  
  public function executeShowintro()
  {
       $introduction = staticinfomationTable::getInstance()->getMembers();
       foreach ($introduction as  $value) {
           $output[] = urlencode($value);
       }
       $output = json_encode($output);
       return $this->renderText(urldecode($output));
       
  }
  public function executeMembers(sfWebRequest $request)
  {
      $this->members = staticinfomationTable::getInstance()->getMembers();
  }
  public function executeHistory(sfWebRequest $request)
  {
      $this->history = staticinfomationTable::getInstance()->getHistory();
  }
  public function executeCopyright(sfWebRequest $request)
  {
      $this->copyright = staticinfomationTable::getInstance()->getCopyright();
  }
  public function executeContact(sfWebRequest $request)
  {
      $this->contact = staticinfomationTable::getInstance()->getContact();
  }

  public function executePoliciesShow(sfWebRequest $request)
  {
      $this->policy = $this->getRoute()->getObject();
  }
  public function executePoliciesHome()
  {
      $this->policy = $this->getRoute()->getObject();
  }
}
